<template>
  <h1>LhzN</h1>
  <h1 v-text="slogan" @click="updateSlogan"></h1>
</template>

<script>


import {inject} from "vue";

export default {
  name: "LhzN",
  setup() {
    const slogan = inject('slogan', '默认值');
    const updateSlogan = inject('updateSlogan');
    return {
      slogan, updateSlogan
    }
  }
}
</script>

<style scoped>

</style>